<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>口子师兄 - 登录</title>
<script type="text/javascript" src="http://localhost:82/statics/js/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost:82/statics/js/formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="http://localhost:82/statics/js/formvalidatorregex.js" charset="UTF-8"></script>
<link href="http://localhost:82/statics/css/reset.css" rel="stylesheet" type="text/css" />
<link href="http://localhost:82/statics/css/dialog_simp.css" rel="stylesheet" type="text/css" />
<link href="font/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="font/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

<link href="font/animate.min.css" rel="stylesheet">
<link href="font/style.min862f.css?v=4.1.0" rel="stylesheet">

<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#username").formValidator({onshow:"请输入用户名",onfocus:"输入11位手机号"}).inputValidator({min:2,max:20,onerror:"应该为11位"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"用户名格式错误"});
	$("#password").formValidator({onshow:"请输入密码",onfocus:"密码应该为6-20位之间"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});

});
//-->
</script>

<link href="http://localhost:82/statics/css/dialog_simp.css" rel="stylesheet" type="text/css" />

<style type="text/css">
#s{
        color: red;
    }
body{
        background: url(./font/login-background.jpg) no-repeat center fixed;
    }
</style>
</head>
<body class="gray-bg">
	<div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">&nbsp;</h1>

            </div>
            <h3 id="s">欢迎登录</h3>

            <form class="m-t" role="form" method="post" action="index.php?m=member&c=index&a=login" id="myform">

                <div class="form-group">
                    <input type="text" id="username" name="username" class="form-control" placeholder="手机号" required=""  maxlength="11"   value="" >
                </div>

                <div class="form-group">
                    <input type="password"  id="password" name="password"  class="form-control" placeholder="密码" required="6"  maxlength="22" value="" >
                </div>
				
				<div class="form-group">
                               <input  id="code" name="code"  type="text" style="width:200px;"  placeholder="验证码"  class="ipt ipt_reg form-control" onfocus="document.getElementById('yzm').style.display='block'" />
                                 <span style="float:left;margin-left:205px;margin-top:-33px;">
<div id="yzm" class="yzm">
                <img id='code_img' width="95" height="33" onclick='this.src=this.src+"&"+Math.random()' src='http://localhost:82/api.php?op=checkcode&code_len=5&font_size=14&width=120&height=26&font_color=&background='>
            	</div>
                                </span>  
                                
                </div>
                       
                <button type="submit" name="dosubmit" id="dosubmit" class="btn btn-primary block full-width m-b login_tj_btn">登 录</button>


                    <a href="http://localhost:82/webregister.php"><button type="button" class="btn btn-danger block full-width"><?php echo '@'.date('Y',time())?>注册</button></a>

            </form>
        </div>
    </div>





<script language="JavaScript">
<!--

	$(function(){
		$('#username').focus();
	})

	function save_username() {
		if($('#cookietime').attr('checked')==true) {
			var username = $('#username').val();
			setcookie('username', username, 3);
		} else {
			delcookie('username');
		}
	}
	var username = getcookie('username');
	if(username != '' && username != null) {
		$('#username').val(username);
		$('#cookietime').attr('checked',true);
	}

	
//-->
</script>

</body>
</html>